package string;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String line ="abc123def456ghi";
        String[] array=line.split("[0-9]+");
        System.out.println(array);

        line ="abc==def=ghi";
        array =line.split("=");
        System.out.println(Arrays.toString(array));

        line = "==abc=def=ghi";
        array =line.split("=");
        System.out.println(Arrays.toString(array));

        line ="abc=def =ghi====";
        array =line.split("=");
        System.out.println(Arrays.toString(array));

    }
}
